package day0401;

import java.util.TreeMap;

public class A09TreeMapDemo02 {
    public static void main(String[] args) {
        TreeMap<Teacher,String> tm = new TreeMap<Teacher,String>();
        Teacher t1= new Teacher("lisi",23);
        Teacher t12= new Teacher("lisi12",25);
        Teacher t13= new Teacher("lisi13",43);
        tm.put(t1,"天津");
        tm.put(t12,"天津12");
        tm.put(t13,"天津13");
        System.out.println(tm );
    }
}
